#!/usr/bin/env bash
battery_path=/sys/class/power_supply
for battery in $(ls -1 $battery_path | grep BAT)
do
	battery_block=$battery_path/$battery
	echo "$battery: $(cat $battery_block/capacity) $(cat $battery_block/status)"
done
